/// <reference path="Validation.ts" />
/// <reference path="ZipCodeValidator.ts" />
/// <reference path="LettersOnlyValidator.ts" />

let strings = ["Hello", "98052", "101"];

let validators: {
    [s: string]: Validation.StringValidator;
} = {};

validators["Zip code"] = new Validation.ZipCodeValidator();
validators["Letters only"] = new Validation.LettersOnlyValidator();

for (let s of strings) {
    for (let name in validators) {
        console.log(`"${s}"- ${validators[name].isAcceptable(s) ? "matches" : "does not match"} ${name}`)
    }
}